/*
    Document   : index
    Created on : 31.12.2013, 9:33:54
    Author     : Dmitry Yermolayev
    Description:
        1 - Common
            1.1 - Reset
        2 - Wrapper
        3 - Header
            3.1 - Header logo
            3.2 - Header nav
        4 - Content
            4.1 - Photo-description
        5 - Footer
        6 - Media queries
            6.1 - screen < 900px
                6.1.1 - Header style
                6.1.2 - Header nav
                6.1.3 - Content
                6.1.4 - Footer style
            6.2 - screen < 680px
                6.2.1 - Header style
                6.2.2 - Header logo
                6.2.3 - Header nav
                6.2.4 - Content
                6.2.5 - Footer style

        7 - Content of login.html, registration.html
        8 - Content of photographers.html
        9 - Content of search.html
*/

/* 1 - Common */

/* 1.1 - CSS Reset */

html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */

article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
    display: block;
}

body {
    line-height: 1;
    font-family: Helvetica, Arial, sans-serif;
    min-height: 555px;
    background-color: #545454;
    font-family: Oxygen, Helvetica, Arial, "Lucida Grande", sans-serif;
    font-weight: 300;
}

ol,ul {
    list-style: none;
}

blockquote,q {
    quotes: none;
}

blockquote:before,blockquote:after,q:before,q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

a {
    color: #FFF;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

html,body,#main-wrapper,#content {
    height: 100%;
}

.loader {
    background: url(images/ajax-loader.gif) no-repeat center;
    -webkit-background-size: 24px;
    background-size: 24px;
}

.loader-large {
    background: url(images/ajax-loader.gif) no-repeat center;
    -webkit-background-size: 50px;
    background-size: 50px;
}

.hidden {
    display: none;
}

.noscript {
    display: block;
    width: 100%;
    text-align: center;
    height: 40px;
    padding: 10px 0;
    background-color: #ffc;
    position: absolute;
}

/* 2 - Wrapper */

/* 3 - Header */

div[data-template="header"] {
    height: 60px;
}

header {
    background: #222;
    padding: 0 90px;
    height: inherit; 
}

/* 3.1 - Header logo */

header .logo {
    float: left;
    width: 177px;
    margin: 0 auto;
    height: auto;
}

/* 3.2 - Header nav */

nav {
    float: right;
}

ul {
    display: inline;
}

ul li {
    -moz-transition: all .2s;
    -ms-transition: all .2s;
    -o-transition: all .2s;
    -webkit-transition: all .2s;
    cursor: pointer;
    display: inline-block;
    margin-right: -4px;
    position: relative;
}

ul li a {
    line-height: 60px;
    display: block;
    padding: 0 15px;
}

ul li:hover {
    background: #555;
    color: #fff;
    text-decoration: none;
}

ul li ul {
    -moz-transition: opacity .2s;
    -ms-transition: opacity .2s;
    -o-transition: opacity .2s;
    -transition: opacity .2s;
    -webkit-transiton: opacity .2s;
    display: none;
    left: 0;
    position: absolute;
    top: 60px;
    visibility: hidden;
    width: 150px;
    z-index: 1000;
}

ul li ul li {
    background: #555;
    color: #fff;
    display: block;
}

ul li ul li a {
    line-height: 45px;
}

ul li ul li:hover {
    background: #666;
}

ul li:hover ul {
    display: block;
    opacity: 1;
    visibility: visible;
}

#menu-logout {
    background: url(images/sprites.png) no-repeat 0px -37px;
}

/* 4 - Content */

#content {
    height: calc(100% - 60px - 50px);    /*body height equals 100% - height of header and footer - padding*/
    height: -webkit-calc(100% - 60px - 50px);    /*body height equals 100% - height of header and footer - padding*/
    position: relative;
}

.cover {
    background: no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
}

/* 4.1 - Photo-description */

#photo-description {
    height: auto;
    overflow: hidden;
    background-color: #8e948e;
    background-color: rgba(142, 148, 142, .3);
    filter: progid: DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#4c8e948e', endColorstr='#4c8e948e');
    filter: alpha(opacity=30);    /* IE */
    color: #fff;
    line-height: 1.2;
    bottom: 0;
    position: absolute;
    -webkit-transition: all 0.5s linear;
    transition: all 0.5s linear;
    width: 100%;
}

#photo-description:hover {
    background-color: #6e7374;
    background-color: rgba(110, 115, 116, .65);
    filter: progid: DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#4c6e7374', endColorstr='#4c6e7374');
    filter: alpha(opacity=65);    /* IE */
    -webkit-transition: all 0.2s linear;    /* IE */
    transition: all 0.2s linear;
}

#photo-description p {
    margin: 2px 0;
}

#photo-description-title {
    float: left;
    height: 100%;
    width: 30%;
    min-width: 100px;
    padding: 30px;
}

#photo-description-content {
    float: right;
    height: 100%;
    width: 70%;
    min-width: 320px;
    padding: 30px 30px 30px 100px;
}

#photo-description-title span {
    float: left;
    margin: 5px 10px;
}

span#author {
    font-weight: bold;
}

#rating, #geo-location {
    height: 100px;
    background-color: #6e7374;
    background-color: rgba(110, 115, 116, .65);
    filter: alpha(opacity=65);
    border-radius: 15px;
    float: right;
    margin: 10px 10px;
    -webkit-transition: all 0.2s linear;
    transition: all 0.2s linear;
    position: absolute;
}

#geo-location {
    top: 110px;
    width: 100px;
}

.map-icon {
    background: url(images/map-icon100.png) center no-repeat;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#geo-location:hover {
    -webkit-box-shadow: 1px 5px 5px 5px;
    box-shadow: 1px 1px 10px #000;
}

.icon-star {
    width: 50px;
    height: 60px;
    margin: 0 auto;
    background: url(images/star.png) center no-repeat;
}

.rate-container a {
    display: block;
    float: left;
    margin: 10px 1px;
    width: 20px;
    height: 20px;
    background-color: #afffff;
}

.rate-container {
    height: 60px;
    width: 110px;
    margin: 0 auto;
    overflow: hidden;
}

.rate-container .active-rate-bar {
    background-color: #36bbdc;
}

.rate-container a:hover,.rate-container .hover-rate-bar {
    background-color: #36ff00;
}

.mark,.rate-bar {
    height: 100%;
    overflow: hidden;
}

.rate-value {
    height: 40px;
    color: #36bbdc;
    font-size: 2em;
    padding: 5px;
    text-align: center;
}

.login-message {
    width: 150px;
    height: 100%;
    text-align: center;
    font-size: 1.1em;
    color: #36BBDC;
    padding: 20px 5px;
}

/* 5 - Footer */

div[data-template="footer"] {
    height: 50px;
}

footer {
    background: #222;
    overflow: hidden;
    padding: 4px 90px;
}

footer p {
    color: #fff;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
}

.facebook-social,.twitter-social,.google-social,.linkedin-social,.flickr-social {
    float: left;
    margin: 3px 3px;
    height: 35px;
    width: 35px;
}

.facebook-social {
    background: url(images/sprites.png) no-repeat 0px 0px;
}

.twitter-social {
    background: url(images/sprites.png) no-repeat -50px 0px;
}

.google-social {
    background: url(images/sprites.png) no-repeat -100px 0px;
}

.linkedin-social {
    background: url(images/sprites.png) no-repeat -150px 0px;
}

.flickr-social {
    background: url(images/sprites.png) no-repeat -200px 0px;
}

.facebook-social:hover,.twitter-social:hover,.google-social:hover,.linkedin-social:hover,.flickr-social:hover {
    opacity: 0.6;
}

.footer-copyright {
    display: inline-block;
    float: right;
    margin: 7px auto;
}

/* 7 - Content of "login.html" */

#form-wrapper {
    background: #4d4d4d;
    -webkit-box-shadow: 0px 0px 100px 20px #1e1e1e inset;
    box-shadow: 0px 0px 100px 20px #1e1e1e inset;
    border-radius: 15px;
    color: #f7f8fa;
    margin: 0 auto;
    position: relative;
    padding: 23px;
    top: 40px;
    width: 480px;
}

.form-container {
    display: inline-block;
    height: 100%;
    width: 85%;
}

.h2 {
    font-size: 20px;
}

#login-form {
    display: inline-block;
    margin-top: 35px;
    width: 100%;
    height: 120px;
}

#login-form .email-area,#login-form .pass-area {
    display: block;
    float: left;
    font-size: 0.85em;
    height: 90px;
    margin-right: 14px;
    width: 46%;
}

.form-input {
    background: #e4e4e4;
    display: inline-block;
    -webkit-box-shadow: 0px 0px 10px 3px #b2b2b2 inset;
    box-shadow: 0px 0px 10px 3px #B2B2B2 inset;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #1a1a1a;
    font-size: 1em;
    margin: 5px 0;
    padding: 7px;
    width: 100%;
}

.error,.error:hover {
    border-color: #ff888b;
    background: #ffc0cb;
    -webkit-transition: background border-color 0.5s;
    transition: background border-color 0.5s;
}

.email-area .form-input {
    background: #e4e4e4 url(images/logIcon.png) no-repeat 98% center;
    padding-right: 27px;
}

.email-area .form-input.error {
    background: #ffc0cb url(images/logIcon.png) no-repeat 98% center;
    padding-right: 27px;
    -webkit-transition: background 0.5s;
    transition: background 0.5s;
}

.pass-area .form-input {
    background: #E4E4E4 url(images/passIcon.png) no-repeat 98% center;
    padding-right: 27px;
}

.pass-area .form-input.error {
    background: #ffc0cb url(images/passIcon.png) no-repeat 98% center;
    padding-right: 27px;
    -webkit-transition: background 0.5s;
    transition: background 0.5s;
}

.form-input:hover {
    border: 1px solid #a9a9a9;
}

.form-input:focus {
    border: 1px solid #a9a9a9;
    outline: none;
}

.form-input:active {
    border: 1px solid #a9a9a9;
}

.error-message {
    color: #ff4040;
    font-size: 0.9em;
    margin-top: 5px;
}

.login-image-button {
    outline: none;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 18%;
    background-color: #36bbdc;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    -webkit-box-shadow: -20px 0px 100px 15px rgba(27, 27, 27, 1) inset;
    box-shadow: -20px 0px 100px 15px rgba(27, 27, 27, 1) inset;
}

.login-image-button:hover,.login-image-button:focus {
    -webkit-box-shadow: -20px 0px 100px 15px rgba(27, 27, 27, 0.85) inset;
    box-shadow: -20px 0px 100px 15px rgba(27, 27, 27, 0.85) inset;
}

.login-image-button:active {
    -webkit-box-shadow: -20px 0px 100px 15px rgba(27, 27, 27, 1) inset;
    box-shadow: -20px 0px 100px 15px rgba(27, 27, 27, 1) inset;
}

.register-user-link,.register-user-link a {
    color: #d0d0d0;
}

.register-user-link a {
    font-weight: bold;
    font-size: 1.15em;
}

.register-user-link a:hover {
    color: #fff;
    text-decoration: none;
}

/* End of content of Login Form (end of 7) */

/* Content of registration.html*/

#registration-form {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.close-registration-form {
    background: url(images/sprites.png) no-repeat -100px -50px;
    float: right;
    height: 24px;
    width: 24px;
    text-indent: -99999px;
}

.helper-input {
    color: #c4c4c4;
    display: block;
    font-size: 0.85em;
    font-style: italic;
    margin: 5px 0px;
}

#registration-form .email-area,#registration-form .pass-area,#registration-form .nick-area,#registration-form .pass-confirm-area {
    display: block;
    float: left;
    font-size: 0.85em;
    height: 105px;
    width: 48%;
}

#registration-form .email-area,#registration-form .pass-area {
    margin-right: 4%;
}

#registration-form .default-button {
    margin: 5px 146px 3px 146px;
}

.login-user-link {
    margin-left: 4px;
}

/* End of content of Registration Form */

/* Begining of content of tags.html*/

.tags {
    float: left;
}

.tags span {
    background: #e4e4e4;
    -webkit-box-shadow: 0px 0px 10px 3px #b2b2b2 inset;
    box-shadow: 0px 0px 10px 3px #b2b2b2 inset;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #1a1a1a;
    margin-right: 5px;
    padding: 3px;
    font-size: 12px;
    float: left;
}

.tags span a {
    text-indent: -99999px;
    width: 10px;
    height: 10px;
    float: right;
    background: url(images/sprites.png) no-repeat -149px -49px;
    margin-left: 10px;
    margin-right: 2px;
    cursor: pointer;
}

#inputVisible {
    margin: 0px;
    width: 120px;
    border: none;
    background: transparent;
}

#inputVisible:focus {
    outline: none;
}

/* End of content of tags.html*/

/*  Buttons styles */

.default-button {
    min-width: 140px;
    padding: 5px 20px 5px 20px;
    outline: none;
    position: relative;
    cursor: pointer;
    border-radius: 3px;
    color: #555;
    font-size: 17px;
    text-shadow: 1px 1px #d6d6d6;
    border: 1px solid #959595;
    border-top: 1px solid #b4b4b4;
    border-bottom: 1px solid #7b7b7b;
    -webkit-box-shadow: inset 2px 2px #e3e3e3, inset 1px 0 #cecece, inset -1px 0 #cecece, inset 0 -1px #bdbdbd, 0 2px #878787, 0 3px #7b7b7b, 0 4px 2px rgba(0, 0, 0, 0.4);
    box-shadow: inset 2px 2px #e3e3e3, inset 1px 0 #cecece, inset -1px 0 #cecece, inset 0 -1px #bdbdbd, 0 2px #878787, 0 3px #7b7b7b, 0 4px 2px rgba(0, 0, 0, 0.4);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #e4e4e4), color-stop(100%, #b2b2b2));    /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #e4e4e4 0%, #b2b2b2 100%);    /* IE10+ */
    background: -webkit-gradient(linear, left top, left bottom, from(#e4e4e4), to(#b2b2b2));    /* IE10+ */
    background: -webkit-linear-gradient(top, #e4e4e4 0%, #b2b2b2 100%);    /* IE10+ */
    background: linear-gradient(top, #e4e4e4 0%, #b2b2b2 100%);
}

.default-button:hover {
    border-top: 1px solid #a2a2a2;
    -webkit-box-shadow: inset 2px 2px #d4d4d4, inset 1px 0 #cecece, inset -1px 0 #cecece, inset 0 -1px #cecece, 0 2px #878787, 0 3px #7b7b7b, 0 4px 2px rgba(0, 0, 0, 0.4);
    box-shadow: inset 2px 2px #d4d4d4, inset 1px 0 #cecece, inset -1px 0 #cecece, inset 0 -1px #cecece, 0 2px #878787, 0 3px #7b7b7b, 0 4px 2px rgba(0, 0, 0, 0.4);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #b7b7b7), color-stop(100%, #c2c2c2));    /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #b7b7b7 0%, #c2c2c2 100%);    /* IE10+ */
    background: -webkit-gradient(linear, left top, left bottom, from(#b7b7b7), to(#c2c2c2));    /* IE10+ */
    background: -webkit-linear-gradient(top, #b7b7b7 0%, #c2c2c2 100%);    /* IE10+ */
    background: linear-gradient(top, #b7b7b7 0%, #c2c2c2 100%);
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#b7b7b7', endColorstr='#c2c2c2', GradientType=0);    /* IE6-9 */
    background-color: #c0c0c0;
}

.default-button:active {
    top: 3px;
    border: 1px solid #807d7d;
    border-top: 1px solid #807d7d;
    border-bottom: 1px solid #807d7d;
    background: #A3A3A3;
    -webkit-box-shadow: inset 1px 1px #575757;
    box-shadow: inset 1px 1px #575757;
}

.action-button {
    padding-top: 20px;
    padding-bottom: 20px;
    background: #95de71;
    border: 1px solid #95de71;
    -webkit-box-shadow: inset 0px 0px 4px 2px #88c967;
    box-shadow: inset 0px 0px 4px 2px #88c967;
    border-radius: 3px;
    text-shadow: 2px 2px #d6d6d6;
    font-size: 17px;
    text-align: center;
    min-width: 120px;
    height: 70px;
    outline: none;
}

.action-button:hover {
    background: #86cc64;
    -webkit-box-shadow: inset 0px 0px 4px 2px #7ebd5e;
    box-shadow: inset 0px 0px 4px 2px #7EBD5E;
}

.action-button:active {
    background: #85ba6a;
    border: 1px solid #85ba6a;
    text-shadow: 2px 2px #d6d6d6;
    -webkit-box-shadow: inset 0px 0px 4px 2px #78a860;
    box-shadow: inset 0px 0px 4px 2px #78A860;
}

/* end of button styles */

/* Content of photographers.html */

#bg {
    text-align: center;
    font-size: 1.1em;
    height: 100%;
    background-color: rgba(34, 34, 34, 0.75);
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
    filter: alpha(opacity=75);
    -moz-opacity: 0.75;
    -khtml-opacity: 0.75;
    color: #f7f8fa;
    padding: 10px;
    margin: 0px;
    position: absolute;
    overflow-y: scroll;
    width: 100%;
}

#bg #photographers {
    border: none;
    border-bottom: 1px solid #4c4c4c;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    height: auto;
}

#bg #photographers th {
    padding: 15px;
    border: 1px solid #4c4c4c;
    background-color: #4f4f4f;
}

#bg #photographers td {
    padding: 10px;
    border-left: 1px solid #4c4c4c;
    border-right: 1px solid #4c4c4c;
}

#bg #photographers tr:nth-child(even) {
    background-color: rgba(204, 204, 204, 0.6);
   -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
   filter: alpha(opacity=60);
   -moz-opacity: 0.6;
   -khtml-opacity: 0.6;
}

/* End of content of photographers.html */

/* Content of search.html */

#search-field {
    width: 80%;
    margin-right: 1%;
    background: #e4e4e4 url(images/mag_glass.png) no-repeat 1% center;
    padding-left: 3%;
}

#search-button {
    width: 10%;
}

#radio-container {
    padding-top: 5px;
}

/* Content of 404.html page */

#page-not-found-block {
    background: url(images/sprites.png) no-repeat 425px -235px;
    background-color: rgba(202, 202, 202, 0.8);
    border-radius: 11px;
    border: 1px solid black;
    -webkit-box-shadow: 8px 8px 4px #2b2b2b;
    box-shadow: 8px 8px 4px #2b2b2b;
    height: 200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    width: 520px;
    top: 150px;
}

#page-not-found-block h1 {
    font-weight: bold;
    margin-bottom: 30px;
}

#page-not-found-block span {
    border-bottom: 1px solid #000;
    display: block;
    height: 80px;
    margin-bottom: 10px;
}

#page-not-found-block a {
    color: #1c2066;
    margin-top: 50px;
}

/* End of 404.html page */

[data-template="map"] {
    width: 400px;
    height: 400px;
}

.lightbox,.back {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #000;
    padding: 30px;
}

.lightbox {
    z-index: 100;
}

.back {
    background-color: rgba(0, 0, 0, .8);
    filter: progid: DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#4c000000', endColorstr='#4c000000');
    filter: alpha(opacity=80);
}

.lightbox-content {
    width: 100%;
    height: 100%;
    -webkit-background-size: contain;
    background-size: contain;
    margin: 0 auto;
    background-position: center center;
    background-repeat: no-repeat;
}

.tmpl-content {
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    margin: -190px 0 0 -177px;
}

.lightbox-content img {
    max-height: 400px;
    max-width: 800px;
}

/* About.html style */

#bg h1 {
    margin: 15px;
    padding: 10px;
    font-size: 1.5em;
    border-bottom: 2px solid white;
    text-shadow: 0 2px 1px rgba(0, 0, 0, 0.3), -5px 4px 0 rgba(0, 0, 0, 0.05);
    -webkit-transition: all 0.2s ease-in-out 0s;
    transition: all 0.2s ease-in-out 0s;
}

#bg #about-text ul {
    margin-left: auto;
    margin-right: auto;
    list-style-type: none;
}

#bg #about-text ul li {
    display: inline-block;
    margin: 5px;
}

#bg #about-text ul li:hover {
    color: grey;
}

#bg #about-text ul li p {
    text-align: center;
}

#bg #about-text ul li img {
    border: 1px solid;
    width: 120px;
    height: 120px;
}

#bg ul {
   list-style: none;
   margin: 1em 0;
   padding: 0; 
   width: 98%;
}

#bg ul li {
   margin: 0;
   border-bottom: 1px solid #4c4c4c;
   color:whitesmoke; 
   display: block;
   text-align: left;
}

#bg ul li:hover {
   background-color: darkgrey; 
}

#bg ul li a{
    font-weight: bold;
    width: 15%;
    display: inline-block;
    text-align: left;
}

#bg ul li span{
    width: auto;
    margin-right: 10px;
    display: inline-block;
    text-align: right;
    font-weight: lighter;
    color: lightgrey;
    font-size: smaller;
}

/* End of About.html style */

/* upload.html style */

#fileuploader,#fieldsuploader,#uploadprogress,#uploadresult {
    margin: 2%;
    padding: 20px;
    vertical-align: middle;
    text-align: left;
}

#uploadresult {
    float: left;
    width: 46%;
    height: 475px;
}

#uploadresult p {
    margin: 10px;
}

#uploadresult img {
    width: 100%;
}

#fieldsuploader {
    width: 46%;
    float: right;
}

#fieldsuploader textarea {
    height: 170px;
}

#fileuploader,#uploadprogress {
    height: 200px;
    text-align: center;
}

#fieldsuploader .login-inputs {
    display: block;
}

.file-input-wrapper {
    width: 200px;
    height: 60px;
    overflow: hidden;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.file-input-wrapper > input[type="file"] {
    font-size: 200px;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
   -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
   filter: alpha(opacity=0);
   -moz-opacity: 0;
   -khtml-opacity: 0;
}

#reload-btn {
    vertical-align: bottom;
    width: 200px;
}

#bg label{
    margin-top: 5px
}

/* end of upload.html style */

/* content background image style -- test */

.content-bg-img {
    width: 1px;
    height: 1px;
    position: absolute;
    top: -99999px;
    left: -99999px;
}

#change-photo-holder {
    height: 25px;
    width: 100%;
    float: right;
    vertical-align: bottom;
    text-align: center;
}

.change-photo-btn{
    width: 15px;
    height: 15px; 
    border-radius: 50%;
    background-color: #c0c0c0;
    opacity: 0.7;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
    filter: alpha(opacity=70);
    -moz-opacity: 0.7;
    -khtml-opacity: 0.7;
    color: #fff;
    border: none;
    vertical-align: middle;
    display: inline-block;
    margin-right: 3px;
    margin-left: 3px;

}

.change-photo-btn:hover {
    border: 1px solid #fff;
}

.change-photo-btn-active {
    background-color: #fff;
}

/* end of content background image style -- test */

.hided-rating {
    width: 100px;
}

.showed-rating {
    width: 150px;
}

.disabled .rate-container a, .disabled .rate-container a:hover {
    background-color: #676;
}

/* 6 - Media queries */

/* 6.1 - screen < 1000px */

@media only screen and (max-width: 1000px),
screen and (max-device-width: 1000px) {
    
    /* 6.1.1 - Header style */
    
    header {
        padding: 0 15px;
    }
    
    /* 6.1.2 - Header nav */
    
    /* 6.1.3 - Content */
    
    #photo-description {
        height: auto;
        overflow: hidden;
        position: absolute;
        bottom: 0;
    }

    /* 6.1.4 - Footer style */
    
    footer {
        padding: 0 15px;
    }
}

/* 6.2 - screen < 800px */

@media only screen and (max-width: 800px),
screen and (max-device-width: 800px) {
    
    /* 6.2.1 - Header style */
    
    div[data-template="header"] {
        height: auto;
    }
    
    header .logo,    header nav {
        float: none;
    }
    
    header nav {
        text-align: center;
    }
    
    nav ul li {
        margin: 0 -10px;
    }
    
    nav ul li a {
        font-size: 1.2em;
        line-height: 60px;
    }
    
    /* 6.2.2 - Header logo */
    
    /* 6.2.3 - Header nav */
    
    /* 6.2.4 - Content */
    
    #photo-description-content,    #photo-description-title {
        width: 100%;
        height: auto;
        padding: 10px 20px;
        font-size: 1.2em;
    }
    
    #content {
        height: 100%;
    }

    #uploadresult {
        width: 100%;
        height: auto;
    }
    #fieldsuploader {
        width: 100%;
    }
    
    .image-info {
        right: 0;
        bottom: -20%;
        width: 100%;
        height: 30%;
        top: auto;
        -webkit-transition: bottom 0.7s;
        transition: bottom 0.7s;
    }
    
    .image-wrapper:hover > .image-info {
        bottom: 0;
    }
    
    /* 6.2.5 - Footer style */
    
}

/* 6.3 - screen < 640px */

@media only screen and (max-width: 640px),
screen and (max-device-width: 640px) {
    
    input[type="text"],input[type="password"],input[type="submit"],input[type="file"],button {
        font-size: 1.3em;
        margin: 10px
    }
    
    nav ul li {
        display: block;
        margin: 0;
    }
    
    nav ul li a {
        font-size: 2em;
        padding: 40px;
    }
    
    ul li ul {
        position: static;
        display: none;
        visibility: hidden;
        width: 100%;
    }
    
    ul li:hover ul {
        display: block;
        opacity: 1;
        visibility: visible;
    }
    
    ul.sub-search {
        width: 100%;
    }
    
    li#menu-logout {
        width: 34px;
        height: 49px;
        margin: 0 auto;
    }
    
    #photo-description-content a,#photo-description-title a {
        font-size: 1.3em;
    }
    
    #form-wrapper {
        width: 95%;
        font-size: 1.5em;
    }
    
    #login-form {
        height: auto;
    }
    
    #login-form .email-area,#login-form .pass-area {
        width: 95%;
    }
    
    #registration-form .default-button {
        width: 100%;
        margin: 10px;
    }
    
    #search-button, #uploadedfile, .default-button {
        width: 80%;
    }
    
    #registration-form .email-area,#registration-form .pass-area,#registration-form .nick-area,#registration-form .pass-confirm-area {
        float: none;
        width: 100%;
        margin: 30px 0;
    }
    
    input {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .tmpl-content {
        width: 100%;
        margin-left: 0;
        left: 0;
    }
    
    #rating {
        height: 150px;
        font-size: 1.2em;
    }
    
    .hided-rating {
        width: 150px;
    }
    
    .showed-rating {
        width: 200px;
    }
    
    .icon-star {
        width: 75px;
        height: 85px;
    }
    
    .rate-container a {
        width: 38px;
        height: 40px;
    }
    .rate-container {
        height: 100px;
        width: 200px;
    }
    
    .rate-value {
        height: 75px;
        font-size: 2.5em;
    }
    
    .login-message {
        width: 200px;
        font-size: 1.3em;
    }
    
    #change-photo-holder {
        height: auto;
        margin-bottom: 10px;
    }
    
    .change-photo-btn {
        padding: 5%;
    }
    
    div[data-template="footer"] {
        height: auto;
    }
    
    footer p {
        font-size: 1.2em;
        line-height: 25px;
    }
    
    .footer-copyright {
        display: block;
        float: none;
        width: 100%;
    }
    
    .social-bar {
        width: 205px;
        margin: 0 auto;
        height: 35px;
    }
}